package com.example.serverdemo.serviceImpl;

import com.example.serverdemo.bean.LightControllerBean;
import com.example.serverdemo.mapper.LightControllerMapper;
import com.example.serverdemo.service.LightControllerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LightControllerServiceImpl implements LightControllerService {

    @Autowired
    private LightControllerMapper lightControllerMapper;
    @Override
    public LightControllerBean queryLightControllerParameter(String deviceId) {
        return lightControllerMapper.queryLightControllerParameter(deviceId);
    }

    @Override
    public int addLightControllerParameter(LightControllerBean lightControllerBean) {
        return lightControllerMapper.addLightControllerParameter(lightControllerBean);
    }

    @Override
    public int updateLightControllerParameter(LightControllerBean lightControllerBean) {
        return lightControllerMapper.updateLightControllerParameter(lightControllerBean);
    }
}
